import request from '@/utils/request'

// 查询业务员排行榜
export function querySaleschartsList(data) {
  return request({
    url: '/reportSaleman/querySaleschartsList',
    method: 'post',
    data
  })
}

// 订单详情
export function querySalOrderList(data = {}) {
  return request({
    url: '/reportSaleman/querySalOrderList',
    method: 'post',
    data
  })
}

// 业务员首页——头部信息
export function querySalerHeaderData(data) {
  return request({
    url: '/reportSaleman/querySalerHeaderData',
    method: 'post',
    data
  })
}
// 采购员首页——头部信息（燕威做的）
export function queryPooAmount(data) {
  return request({
    url: '/reportpoo/queryPooAmount',
    method: 'post',
    data
  })
}
// 仓库原材料实时数据结存表（燕威做的）
export function queryRealTimeDataBalance(data) {
  return request({
    url: '/reportpoo/queryRealTimeDataBalance',
    method: 'post',
    data
  })
}
// 实时采购订单需求清单
export function getPoorderList(data) {
  return request({
    url: '/tPurPoorder/getPoorderList',
    method: 'post',
    data
  })
}
// 计划部
// 销售在制订单
export function querySalPlnPlan(data) {
  return request({
    url: '/tPlnPlanorder/querySalPlnPlan',
    method: 'post',
    data
  })
}
// 生产在制订单
export function queryPrdPlnPlan(data) {
  return request({
    url: '/tPlnPlanorder/queryPrdPlnPlan',
    method: 'post',
    data
  })
}
// 委外外发订单
export function querySubPlnPlan(data) {
  return request({
    url: '/tPlnPlanorder/querySubPlnPlan',
    method: 'post',
    data
  })
}
// 采购未入库订单
export function queryPurPlnPlan(data) {
  return request({
    url: '/tPlnPlanorder/queryPurPlnPlan',
    method: 'post',
    data
  })
}
// 成品仓库数据清单
export function queryProductStockInventory(data) {
  return request({
    url: '/tPlnPlanorder/queryProductStockInventory',
    method: 'post',
    data
  })
}
// 仓库材料数据清单
export function queryMaterialStockInventory(data) {
  return request({
    url: '/tPlnPlanorder/queryMaterialStockInventory',
    method: 'post',
    data
  })
}
// 仓库异常
export function queryProductExceptionList(data) {
  return request({
    url: '/report/queryProductExceptionList',
    method: 'post',
    data
  })
}
// 主页-任务-查询
export function queryTJxPersonalList(data) {
  return request({
    url: '/tJxPersonal/queryTJxPersonal',
    method: 'post',
    data
  })
}
// 主页-任务-关闭
export function closeTJxPersonal(data) {
  return request({
    url: '/tJxPersonal/closeTJxPersonal',
    method: 'post',
    data
  })
}
// 主页-任务-新增
export function insertTJxPersonal(data) {
  return request({
    url: '/tJxPersonal/insertTJxPersonal',
    method: 'post',
    data
  })
}
// 主页-任务-更新
export function updateTJxPersonal(data) {
  return request({
    url: '/tJxPersonal/updateTJxPersonal',
    method: 'post',
    data
  })
}
// 主页-任务-删除
export function deleteTJxPersonal(data) {
  return request({
    url: '/tJxPersonal/deleteTJxPersonal',
    method: 'post',
    data
  })
}
// 生产异常-半成品入库
export function queryInStockAbnormal(data) {
  return request({
    url: '/report/queryInStockAbnormal',
    method: 'post',
    data
  })
}
// 采购异常-今天未入库
export function queryPoorMonthNotStock(data) {
  return request({
    url: '/report/queryPoorMonthNotStock',
    method: 'post',
    data
  })
}
// 采购异常-本月未入库
export function queryPoorNowNotStock(data) {
  return request({
    url: '/report/queryPoorNowNotStock',
    method: 'post',
    data
  })
}
// 库存异常-库存过盛
export function queryInventoryOverabundanceList(data) {
  return request({
    url: '/report/queryInventoryOverabundanceList',
    method: 'post',
    data
  })
}
// 库存异常-盘亏
export function queryInventoryLossList(data) {
  return request({
    url: '/report/queryInventoryLossList',
    method: 'post',
    data
  })
}
// 库存异常-盘盈
export function queryInventoryGianList(data) {
  return request({
    url: '/report/queryInventoryGianList',
    method: 'post',
    data
  })
}
// 销售异常-成品出库
export function queryOutSalQtyList(data) {
  return request({
    url: '/report/queryOutSalQtyList',
    method: 'post',
    data
  })
}
// 生产异常-今日领料明细
export function queryProductNowPick(data) {
  return request({
    url: '/report/queryProductNowPick',
    method: 'post',
    data
  })
}
// 生产异常-本周领料明细
export function queryProductWeekPickList(data) {
  return request({
    url: '/report/queryProductWeekPickList',
    method: 'post',
    data
  })
}
// 保存文本
export function insertExcel(data) {
  return request({
    url: '/tJxExcel/insertExcel',
    method: 'post',
    data
  })
}
// 保存文本
export function uploadImg(data) {
  return request({
    url: '/tBdMaterial/uploadImg',
    method: 'post',
    data
  })
}

